package com.dingup.mock.service;

import com.dingup.mock.enums.MarkTypeEnum;

import java.util.Date;

/**
 * Created by wancheng on 2018/11/12.
 */
public interface HomeworkRecordService {
    /**
     * 保存老师批改记录
     *
     * @param homeworkRecordId
     * @param examId
     * @param endTime
     */
    public void updateTeacherCorrect(Integer homeworkRecordId, String examId, Integer examIdentity, Date endTime);

    public void updateTeacherCorrectStatus(Integer homeworkRecordId, MarkTypeEnum type);

    /**
     * 保存作业进度
     *
     * @param id                  Integer
     * @param homeworkRecordId    Integer
     * @param homeworkQuestionNum Integer
     * @param examId              String
     * @param correct             String
     * @param total               String
     */
    void saveHomeworkProgress(Integer homeworkRecordId, Integer homeworkQuestionNum, Integer id, String examId, Integer correct, Integer total);

    /**
     * 根据homeworkRecordId 获取 HomeworkId
     *
     * @param homeworkRecordId Integer
     * @return Integer
     */
    Integer getHomeworkIdByHomeworkRecordId(Integer homeworkRecordId);
}
